package com.ee.chat.common.service;

import com.ee.chat.common.entity.PayChannelConfig;
import com.ndhutu.ee.util.pay.Notify;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IPayService {
    Object getPayConfig(PayChannelConfig payChannelConfig) throws Exception;

    Map<String, Object> orderHandle(Integer userId, Integer channelId, Integer payChannelConfigId, Integer amount, String orderNumber, String body) throws Exception;

    String notifyHandle(HttpServletRequest request, Integer payWay, String receipt, Notify notify) throws Exception;

    Map<String, Object> getPayStatus(Integer userId) throws Exception;

    PayChannelConfig getPayConfig(Integer userId, Integer payWay) throws Exception;
}
